package com.xxgc.spring.service.impl;

import com.xxgc.spring.bean.Users;
import com.xxgc.spring.dao.UsersMapper;
import com.xxgc.spring.service.ILoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.io.FileNotFoundException;

@Service
public class LoginServiceImpl implements ILoginService {
    @Autowired
    private UsersMapper um;

    public Users userLogin(Users users) {
        return um.selectUsersByUsers(users);
    }

    @Override
    public Users getUserHeadImg(Users users) throws FileNotFoundException {
        return um.selectUsersByUsers(users);
    }


}
